import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Home from '@/components/Home'
import Detail from '@/components/Detail'
import Order from '@/components/Order'
import Mine from '@/components/Mine'
import Address from '@/components/Address'
import AddAddress from '@/components/AddAddress'
import MyOrder from '@/components/MyOrder'
import MyOrderDetail from '@/components/MyOrderDetail'
import List from '@/components/List';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/home',
      name: 'Home',
      component: Home,
      meta: {
        showFooter: true
      }
    },
    {
      path: '/list',
      name: 'List',
      component: List,
      meta: {
        showFooter: false
      }
    },
    {
      path: '/detail',
      name: 'Detail',
      component: Detail,
      meta: {
        showFooter: false
      }
    },
    {
      path: '/order',
      name: 'Order',
      component: Order,
      meta: {
        showFooter: false
      }
    },
    {
      path: '/mine',
      name: 'Mine',
      component: Mine,
      meta: {
        showFooter: true
      }
    },
    {
      path: '/address',
      name: 'Address',
      component: Address,
      meta: {
        showFooter: false
      }
    },
    {
      path: '/add-address',
      name: 'AddAddress',
      component: AddAddress,
      meta: {
        showFooter: false
      }
    },
    {
      path: '/my-order',
      name: 'MyOrder',
      component: MyOrder,
      meta: {
        showFooter: false
      }
    },
    {
      path: '/my-order-detail',
      name: 'MyOrderDetail',
      component: MyOrderDetail,
      meta: {
        showFooter: false
      }
    }
  ]
})
